<?php
include 'checklogin.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo $home["title"]; ?> | <?php echo $title; ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="<?php echo $home["description"]; ?>" />
    <meta name="keywords" content="<?php echo $home["keywords"]; ?>" />
    <meta content="Themesdesign" name="author"><!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico"><!-- jvectormap -->
    <link href="../assets/css/jqvmap.min.css" rel="stylesheet"><!-- Bootstrap Css -->
    <link href="../assets/css/bootstrap.min.css"  rel="stylesheet" type="text/css"><!-- Icons Css -->
    <link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css"><!-- App Css-->
    <link href="../assets/css/app.min.css"  rel="stylesheet" type="text/css">
</head>

<body data-topbar="colored">
    <!-- Begin page -->
    <div id="layout-wrapper">
        <header id="page-topbar">
            <div class="navbar-header">
                <div class="d-flex">
                    <!-- LOGO -->
                    <div class="navbar-brand-box text-center"><a href="index.php" class="logo logo-dark"><span
                                class="logo-sm"><img src="<?php echo $home["logo"]; ?>" alt="logo-sm-dark"
                                    height="22"></span><span class="logo-lg"><img src="<?php echo $home["logo"]; ?>"
                                    alt="logo-dark" height="24"></span></a><a href="index.html"
                            class="logo logo-light"><span class="logo-sm"><img src="<?php echo $home["logo"]; ?>"
                                    alt="logo-sm-light" height="22"></span><span class="logo-lg"><img
                                    src="<?php echo $home["logo"]; ?>" alt="logo-light" height="24"></span></a></div>
                    <button type="button" class="btn btn-sm px-3 font-size-24 header-item waves-effect"
                        id="vertical-menu-btn"><i class="ri-menu-2-line align-middle"></i></button><!-- App Search-->
                    <form class="app-search d-none d-lg-block">
                        <div class="position-relative"><input type="text" class="form-control"
                                placeholder="Search..."><span class="ri-search-line"></span></div>
                    </form>
                </div>
                <div class="d-flex">
                    <div class="dropdown d-inline-block d-lg-none ms-2"><button type="button"
                            class="btn header-item noti-icon waves-effect" id="page-header-search-dropdown"
                            data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i
                                class="ri-search-line"></i></button>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end p-0"
                            aria-labelledby="page-header-search-dropdown">
                            <form class="p-3">
                                <div class="mb-3 m-0">
                                    <div class="input-group"><input type="text" class="form-control"
                                            placeholder="Search ...">
                                        <div class="input-group-append"><button class="btn btn-primary" type="submit"><i
                                                    class="ri-search-line"></i></button></div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="dropdown d-none d-lg-inline-block ms-1"><button type="button"
                            class="btn header-item noti-icon waves-effect" data-toggle="fullscreen"><i
                                class="ri-fullscreen-line"></i></button></div>

                    <div class="dropdown d-inline-block user-dropdown"><button type="button"
                            class="btn header-item waves-effect" id="page-header-user-dropdown"
                            data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img
                                class="rounded-circle header-profile-user" src="http://q1.qlogo.cn/g?b=qq&nk=<?php echo $home["qq"]; ?>&s=640"
                                alt="Header Avatar"><span class="d-none d-xl-inline-block ms-1"><?php echo $home["username"]; ?></span><i
                                class="mdi mdi-chevron-down d-none d-xl-inline-block"></i></button>
                        <div class="dropdown-menu dropdown-menu-end">
                                    <a
                                class="dropdown-item" href="setpass.php"><i class="ri-lock-unlock-line align-middle me-1"></i>更改密码</a>
                            <div class="dropdown-divider"></div><a class="dropdown-item text-danger" href="login.php?logout"><i
                                    class="ri-shut-down-line align-middle me-1 text-danger"></i>退出登录</a>
                        </div>
                    </div>
                </div>
            </div>
        </header><!-- ========== Left Sidebar Start ========== -->
        <div class="vertical-menu">
            <div data-simplebar="" class="h-100">
                <!--- Sidemenu -->
                <div id="sidebar-menu">
                    <!-- Left Menu Start -->
                    <ul class="metismenu list-unstyled" id="side-menu">
                        <li class="menu-title">管理菜单</li>
                        <li><a href="index.php" class="waves-effect"><i class="mdi mdi-home-variant-outline"></i><span>管理主页</span></a>
                        </li>
                        <li><a href="setsys.php" class=" waves-effect"><i
                                    class=" ri-edit-line "></i><span>主页编辑</span></a></li>
                                    <li><a href="javascript: void(0);" class="has-arrow waves-effect"><i
                                    class="ri-server-line"></i><span>公告栏管理</span></a>
                            <ul class="sub-menu" aria-expanded="false">
                                <li><a href="addaounce.php">添加公告</a></li>
                                <li><a href="aouncelist.php">公告栏列表</a></li>
                            </ul>
                        </li>    
                        <li><a href="javascript: void(0);" class="has-arrow waves-effect"><i
                                    class="ri-file-user-line"></i>
                                    <span>团队管理</span></a>
                            <ul class="sub-menu" aria-expanded="false">
                                <li><a href="adduser.php">添加成员</a></li>
                                <li><a href="userlist.php">成员列表</a></li>
                            </ul>
                        </li>
                        <li><a href="javascript: void(0);" class="has-arrow waves-effect"><i
                                    class=" ri-pages-line "></i><span>收录类型</span></a>
                            <ul class="sub-menu" aria-expanded="false">
                                <li><a href="addtype.php">添加类型</a></li>
                                <li><a href="typelist.php">收录类型列表</a></li>
                            </ul>
                        </li>
                             <li><a href="javascript: void(0);" class="has-arrow waves-effect"><i
                                    class="  ri-compass-3-fill  "></i><span>友联设置</span></a>
                            <ul class="sub-menu" aria-expanded="false">
                                <li><a href="addyou.php">添加友联</a></li>
                                <li><a href="youlist.php">友联列表</a></li>
                                <li><a href="youlisto.php">待审核列表</a></li>
                            </ul>
                        </li>
                        <li><a href="javascript: void(0);" class="has-arrow waves-effect"><i
                                    class=" ri-map-pin-user-line "></i><span>黑名单信息</span></a>
                            <ul class="sub-menu" aria-expanded="false">
                                <li><a href="addinfo.php">添加信息</a></li>
                                <li><a href="infolist.php">信息列表</a></li>
                                     <li><a href="infolisto.php">待审核列表</a></li>
                                     <li><a href="infolistx.php">待提交收录列表</a></li>
                            </ul>
                        </li>
                        <li><a href="setemail.php" class=" waves-effect"><i
                                    class="mdi mdi-email-outline"></i><span>邮件设置</span></a></li>
                         <li><a href="update.php" class=" waves-effect"><i
                                    class="ri ri-cloud-line"></i><span>检查更新</span></a></li>
                   
                    </ul>
                </div><!-- Sidebar -->
            </div>
        </div><!-- Left Sidebar End -->